<template>
  <div @click="bannerClick">
    <div class="editBanner">
      <span>{{left}}</span>
      <span>
        <slot name="right"></slot>
      </span>
    </div>
  </div>
</template>

<script>
  export default {
    props:[
      'left',
    ],
    methods:{
      bannerClick(){
        this.$emit('bannerClick')
      }
    }
  }
</script>

<style lang="less" scoped>
  .editBanner{
    background-color: #fff;
    padding: 15px 15px;
    font-size: 16px;
    color: #333;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    span{
      display: flex;
      justify-content: center;
      align-items: center;
    }
  }
</style>
